<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fm" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML >
<html>
<head>
<base href="<%=basePath%>">

<title>企业信息管理</title>
<link rel="stylesheet" href="css/style.css" type="text/css"></link>
<link rel="stylesheet" href="css/index.css" type="text/css"></link>

</head>

<body>
	<c:if test="${section==null }">
		<jsp:forward page="/section/findAll"></jsp:forward>
	</c:if>
	<div class="banxi body">
		<div class="clearfix top ">
			<table class="banxi">
				<tr>
					<td><a href="jsp/addStaff.jsp"> <input type="button" value="增加员工" /> </a></td>
					<td style="margin: 0 20px"><a href="jsp/staffData.jsp"><input type="button" value="员工资料" /> </a></td>
					<td><a href="jsp/section.jsp"><input type="button" value="部门管理" /> </a></td>
				</tr>
			</table>

		</div>
		<div class="search">
			<label>输入员工信息可模糊查询</label><input type="text" id="search" onkeyup="search()" /> <span><img src="img/u14.png" id="searchImg" onclick="searchImg()" /> </span><input type="button" value="增加员工" />
			<div>
				<table class="searchbox">
				</table>
			</div>
		</div>

		<c:if test="${user==null }">
			<div style="height :520px;"></div>
		</c:if>
		<c:if test="${user!=null }">
			<div class="staffData">
				<table>
					<tr>
						<td><label>员工编号</label>${user.staffID }</td>
						<td><label>姓名</label>${user.userName }</td>
						<td><label>性别</label> <c:if test="${user.sex ==0}">女</c:if> <c:if test="${user.sex ==1}">男</c:if>
						</td>
					</tr>
					<tr>
						<td><label>出生日期</label></td>
						<td><label>身份证号码</label>${user.ID_card_No }</td>
						<td><label>婚姻状况</label> <c:if test="${user.marriage ==0}">未婚</c:if> <c:if test="${user.marriage ==1}">已婚</c:if></td>
					</tr>
					<tr>
						<td><label>政治面貌</label></td>
						<td><label>民族</label></td>
						<td><label>籍贯</label>${user.nativePlace }</td>
					</tr>
					<tr>
						<td><label>电子邮箱</label>${user.email }</td>
						<td colspan="2"><label>联系电话</label>${user.phone }</td>
					</tr>
					<tr>
						<td><label>银行账号</label>${user.bank_No }</td>
						<td colspan="2"><label>联系地址</label>${user.address }</td>
					</tr>
					<tr>
						<td colspan="3"><hr></td>
					</tr>
					<tr>
						<td><label>部门</label>${user.sectionName }</td>
						<td><label>职位</label>${user.competent }</td>
						<td><label>职称</label>${user.competent }</td>
					</tr>
					<tr>
						<td><label>基本工资</label>${user.salary }</td>
						<td><label>学历</label>${user.education }</td>
						<td><label>专业</label>${user.major }</td>
					</tr>
					<tr>
						<td><label>毕业学校</label>${user.graduateAcademy }</td>
						<td><label>入职时间</label>${user.entryDate }</td>
						<td><label>在职状态</label> <c:if test="${user.state ==0}">离职</c:if> <c:if test="${user.state ==1}">在职</c:if>
						</td>
					</tr>
					<tr>
						<td><label>工号</label>${user.staffNo }</td>
						<td colspan="2"><label>合同期限</label>${user.pact }</td>
					</tr>
				</table>

			</div>
		</c:if>
	</div>
	<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>

	<script type="text/javascript" src="js/index.js"></script>
</body>
</html>
